﻿namespace SharePoint.Orm.SiteBuilders {
	/// <summary>
	/// An instruction to reorder a field in a content type.
	/// </summary>
	public class ReorderInstruction {
		/// <summary>
		/// Required.  The operation to perform (e.g. move first).
		/// </summary>
		public InstructionType Instruction { get; set; }

		/// <summary>
		/// Required.  The internal name of the field to perform the instruction on.
		/// </summary>
		public string Field { get; set; }

		/// <summary>
		/// Optional.  The internal name of the field to move this relative to, although the static name is often sufficient.
		/// </summary>
		public string RelativeTo { get; set; }
	}
}
